//
//  LYDSegmentHeader.h
//  ZeegingLottery
//
//  Created by 李曌 on 2018/11/1.
//  Copyright © 2018 蒂埃里. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSInteger
{
    /**
     *  默认
     */
    LYDSegmentHeaderStyleDefault,
    /**
     *  line(下划线)
     */
    LYDSegmentHeaderStyleLine,
    /**
     *  arrow(箭头)
     */
    LYDSegmentHeaderStyleArrow,
    /**
     *  Slide(滑块)
     */
    LYDSegmentHeaderStyleSlide,
    
    /**
     *  Slide(背景图)
     */
    LYDSegmentHeaderStyleSlideImage
    
    
} LYDSegmentHeaderStyle;



@interface LYDSegmentHeader : UIView

@property (nonatomic, assign)NSInteger maxTitle;

@property (nonatomic, strong) UIColor *selectColor;


#pragma mark - init

/**
 DefaultInit

 @param frame frame
 @param titles TitleArray
 @return self
 */
- (instancetype)initWithFrame:(CGRect)frame TitleArray:(NSArray *)titles;


/**
 typeInit

 @param frame frame
 @param titles TitleArray
 @param type type
 @return self
 */
- (instancetype)initWithFrame:(CGRect)frame TitleArray:(NSArray *)titles Type:(LYDSegmentHeaderStyle)style;




@end

NS_ASSUME_NONNULL_END
